package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RequestMapper;
import com.ruoyi.system.domain.Request;
import com.ruoyi.system.service.IRequestService;

/**
 * 客户请求Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-05
 */
@Service
public class RequestServiceImpl implements IRequestService 
{
    @Autowired
    private RequestMapper requestMapper;

    /**
     * 查询客户请求
     * 
     * @param requestId 客户请求主键
     * @return 客户请求
     */
    @Override
    public Request selectRequestByRequestId(Long requestId)
    {
        return requestMapper.selectRequestByRequestId(requestId);
    }

    /**
     * 查询客户请求列表
     * 
     * @param request 客户请求
     * @return 客户请求
     */
    @Override
    public List<Request> selectRequestList(Request request)
    {
        return requestMapper.selectRequestList(request);
    }

    /**
     * 新增客户请求
     * 
     * @param request 客户请求
     * @return 结果
     */
    @Override
    public int insertRequest(Request request)
    {
        return requestMapper.insertRequest(request);
    }

    /**
     * 修改客户请求
     * 
     * @param request 客户请求
     * @return 结果
     */
    @Override
    public int updateRequest(Request request)
    {
        return requestMapper.updateRequest(request);
    }

    /**
     * 批量删除客户请求
     * 
     * @param requestIds 需要删除的客户请求主键
     * @return 结果
     */
    @Override
    public int deleteRequestByRequestIds(Long[] requestIds)
    {
        return requestMapper.deleteRequestByRequestIds(requestIds);
    }

    /**
     * 删除客户请求信息
     * 
     * @param requestId 客户请求主键
     * @return 结果
     */
    @Override
    public int deleteRequestByRequestId(Long requestId)
    {
        return requestMapper.deleteRequestByRequestId(requestId);
    }
}
